// import home from '@/store/home';
import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '@/views/home';
import Login from '@/views/login';
import View from '@/views/view';
import myTemplate from '@/views/my-template';
Vue.use(VueRouter);
const routes = [
  {
    path: '/home',
    component: Home,
    name: 'homePage',
  },
  {
    path: '/view',
    component: View,
    name: '/view',
  },
  {
    path: '/my-template',
    component: myTemplate,
    name: '/my-template',
  },
  {
    path: '/',
    component: Login,
    name: '/login',
},
];
export default new VueRouter({
  routes,
})
